package ch.fusun.baron.core.datastructures;

/**
 * Holds two objects which belong together
 * 
 * @param <T>
 *            The type of objects
 */
public class Pair<T> {

	private final T key;
	private final T value;

	/**
	 * @param key
	 *            The key
	 * @param value
	 *            The value
	 */
	public Pair(T key, T value) {
		this.key = key;
		this.value = value;
	}

	/**
	 * @return The key
	 */
	public T getKey() {
		return key;
	}

	/**
	 * @return The value
	 */
	public T getValue() {
		return value;
	}

}
